package com.hmsm.dingtalk.openapi;


public class Token {
	
	private String tokenValue;
	
	/**
	 * 到期时间
	 */
	private long expireTime;
	
	public Token(String token, long expireDate){
		this.tokenValue = token;
		this.expireTime = expireDate;
	}

	public String toString(){
		if (System.currentTimeMillis()>=expireTime){
			tokenValue = null;
		}
		return tokenValue;
	}
}
